package com.xbaoziplus.simple_spring.beans;

import java.util.HashMap;
import java.util.Map;

/**
 * @author xbaozi
 * @version 1.0
 * @classname UserDap
 * @date 2023-04-23  22:10
 * @description 模拟用户对象dao
 */
public class UserDao {
    private static Map<String, String> hashMap = new HashMap<>();

    static {
        hashMap.put("10001", "xbaoziplus");
        hashMap.put("10002", "陈宝子");
        hashMap.put("10003", "爱吃鱼蛋");
    }

    public String queryUserName(String uId) {
        return hashMap.get(uId);
    }
}
